---
title: Retina Basemap
description: Displaying basemaps at higher resolutions on retina devices with the <code>detectRetina</code> option. In this example the base layer is added at retina resolutions and the labels are added at regular resolutions.
layout: example.hbs
---

<div id="map"></div>

<script>
  var map = L.map('map').setView([41.96, -82.12], 8);

  // use the detect retina option to load retina tiles for this layer.
  L.esri.basemapLayer('DarkGray', {
    detectRetina: true
  }).addTo(map);

  // include the labels at normal resolution
  L.esri.basemapLayer('DarkGrayLabels').addTo(map);
</script>
